---
title: Hello World | Dagster
description: Learn how to get Dagster up and running
---

# Hello World

Let's get your first pipeline up and running.

## Writing a Pipeline

```python file=/getting_started/hello_world.py startafter=start_pipeline_marker endbefore=end_pipeline_marker
from dagster import pipeline, solid


@solid
def get_name(_):
    return "dagster"


@solid
def hello(context, name: str):
    context.log.info("Hello, {name}!".format(name=name))


@pipeline
def hello_pipeline():
    hello(get_name())
```

Save the code above in a file named `hello_world.py`.

You can execute the pipeline in three different ways: [Dagit](/concepts/dagit/dagit), [Dagster Python API](#), or [Dagster CLI](#).

## Running the Pipeline in Dagit

It's highly recommended to use Dagit with Dagster. Dagit is a web-based interface for viewing and
interacting with Dagster objects.

To visualize your pipeline in Dagit, run the following command:

```bash
dagit -f hello_world.py
```

Then navigate to <http://localhost:3000> to start using Dagit:
![dagit-def](/images/getting-started/dagit-def.png)

Click on the "Playground" tab, then press the "Launch Execution" button to execute the pipeline. You
will then see Dagit launches a pipeline run:

![dagit-run](/images/getting-started/dagit-run.png)

## Other Options to Run Dagster Pipelines

You can also execute the pipeline in the following methods:

**Dagster Python API**

```python file=/getting_started/hello_world.py startafter=start_execute_marker endbefore=end_execute_marker
from dagster import execute_pipeline

if __name__ == "__main__":
    result = execute_pipeline(hello_pipeline)
```

**Dagster CLI**

```bash
dagster pipeline execute -f hello_world.py
```

## If You Get Stuck

If you have questions on getting started, we'd love to hear from you:

<p align="center">
  <a href="https://dagster-slackin.herokuapp.com/" target="_blank">
    <img
      src="https://user-images.githubusercontent.com/609349/63558739-f60a7e00-c502-11e9-8434-c8a95b03ce62.png"
      width="160px"
    />
  </a>
</p>
